package org.giovanolli.mumi.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableLoadTimeWeaving;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

@Configuration
@EnableLoadTimeWeaving
@ComponentScan(basePackages = { "org.giovanolli.mumi.dao.impl", "org.giovanolli.mumi.service.impl", "org.giovanolli.mumi.controller", "org.giovanolli.mumi.view" })
@PropertySource("classpath:app-config.properties")
@Import({ PersistenceConfig.class, SecurityConfig.class, MailConfig.class, TaskConfig.class, WebMvcConfig.class })
public class RootConfig {

	@Bean
	public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
		return new PropertySourcesPlaceholderConfigurer();
	}
}